<div class="g-mn">
	    	<b class="spbg2 corner tl"></b>
			<b class="spbg2 corner tr"></b>
			<b class="spbg2 corner bl"></b>
			<b class="spbg2 corner br"></b>
			<div class="titlebar clearfix">FOOTBALL QUIZ</div>
			<div style="width: 476px; margin: 10px auto;"><a target="_blank" href="/match"><img src="/html/upload/item_img/201106/1/01307975732dd595033bannerbonus.jpg" width="476"/></a></div>
			<?php foreach ($this->matchList as $v):?>
			<?php 
				$teamA = $this->matchInfo->getTeam($v->TeamA);
				$teamB = $this->matchInfo->getTeam($v->TeamB);
				$rateA = $this->matchInfo->getRate($v->MatchID, $teamA['flid']);
				$rateB = $this->matchInfo->getRate($v->MatchID, $teamB['flid']);
			?>
			<div class="jc_mainbox clearfix">
				<div class="teamA">
					<img width="118" height="124" src="<?php echo $v->TeamALogo;?>" />
					<span><?php echo $teamA['en_flname']?></span>
				</div>
				<div class="vsbox">
					<span class="top clearfix">
						<!-- 
						<a href="#" class="spbg t-twitter">twitter</a>
						<a href="#" class="spbg t-facebook">facebook</a>
						 -->
			 			<img src="<?php echo $v->MatchLogo;?>" alt="" width="152" height="56" />
					</span>
					<span class="middle spbg2 clearfix"></span>
				</div>
				<div class="teamB" style="width: 115px;">
					<img width="115" height="124" src="<?php echo $v->TeamBLogo;?>" />
					<span><?php echo $teamB['en_flname']?></span>	
				</div>
				<div class="choose clearfix">
					<span class="choose_teamA spbg2">
						<?php if ($v->MatchStatus == 0):?>
    						<a class="spbg2" href="javascript:void(0)" onclick="GGSHOP.facematch.chipin(<?php echo $teamA['flid']?>, <?php echo $v->MatchID;?>)">CHOOSE</a>
	    				<?php else:?>
	    					<a style="background-position: 0 -733px;color: #252525;" class="spbg2" href="javascript:void(0)" onclick="GGSHOP.facematch.chipin(<?php echo $teamA['flid']?>, <?php echo $v->MatchID;?>)">CHOOSE</a>
	    				<?php endif;?>
					</span>
					<span class="choose_comment"><?php if ($v->MatchStatus == 0):?>In Progress<?php else:?>Game Over<?php endif;?></span>
					<span class="choose_teamB spbg2">
						<?php if ($v->MatchStatus == 0):?>
	    					<a class="spbg2" href="javascript:void(0)" onclick="GGSHOP.facematch.chipin(<?php echo $teamB['flid']?>, <?php echo $v->MatchID;?>)">CHOOSE</a>
	    				<?php else:?>
	    					<a style="background-position: 0 -733px;color: #252525;" class="spbg2" href="javascript:void(0)" onclick="GGSHOP.facematch.chipin(<?php echo $teamB['flid']?>, <?php echo $v->MatchID;?>)">CHOOSE</a>
	    				<?php endif;?>
					</span>
					<input type="hidden" name="matchstatu" value="<?php echo $v->MatchStatus;?>"></input>
    				<input type="hidden" name="matchid" value="<?php echo $v->MatchID;?>"></input>
				</div>
				<div class="vsbox" style="height: 50px;padding: 0 0 20px 120px;">
					<span class="bottom0"><br /><?php echo date('m-d H:i', $v->MatchTime);?></span>
					<span class="bottom1">
						<ul>
							<li>
								<span class="left"><?php echo $teamA['en_flname']?></span>
								<span class="right"><?php echo $rateA['Rate'];?></span>
							</li>
							<li>
								<span class="left"><?php echo $teamB['en_flname']?></span>
								<span class="right"><?php echo $rateB['Rate'];?></span>
							</li>
						</ul>
					</span>
				</div>
			</div>
			<?php endforeach;?>
			<div class="pages clearfix">
				<div class="g-pages-style">
					<?php echo $this->pageString;?>
				</div>
			</div>	
			<div style="width: 476px; margin: 10px auto;"><a target="_blank" href="/cld-92-Soccer_Jersey_Kits.html"><img src="/images/facematch-banner-club-low.jpg" width="476"/></a></div>
			<div style="width: 476px; margin: 10px auto; margin-bottom: 0;"><a target="_blank" href="/cld-93-National_Soccer_Jerseys.html"><img src="/images/facematch-banner-national-low-to.jpg" width="476"/></a></div>	
	    </div>
	    <div class="w-blk0 w-blk-jcwin" id="jc_chipin" style="margin:10px;display: none; position:absolute;">
	      <h2 class="blk0h2 f-iblk clearfix">
	          <span class="spbg blkhdl">BET</span>
	          <span class="spbg blkhdr"><input class="spbg" type="button" value="" onclick="GGSHOP.match.hide();"/></span>
	      </h2>
	      <div class="blkbody">
	         <div class="inner-blkbody">
	             <div class="jctitle">You have $<span class="jdoller" id="my_score">0</span>!</div>
	                 <div class="jccontent">
	                 <input type="text" class="money-input" name="score" id="score" onkeyup="this.value=this.value.replace(/[^\d]/g,'');"/> <input class="bet-btn spbg" type="button" value="BET" onclick="GGSHOP.match.bet();"/>
	             </div>
	         </div>
	      </div>
	 </div>
	  <div class="w-blk0 w-blk-jcwin" id="login" style="margin:10px;display: none; position:absolute;">
	      <h2 class="blk0h2 f-iblk clearfix">
	          <span class="spbg blkhdl">Login</span>
	          <span class="spbg blkhdr"><input class="spbg" type="button" value="" onclick="GGSHOP.facematch.hide();"/></span>
	      </h2>
	      <div class="blkbody">
	         <div class="inner-blkbody">
	         		<div class="jctitle"></div>
	                 <div class="jccontent">
	                 <input class="bet-btn spbg" style="background-position:-204px -1614px; width: 166px; font-size: 11px; padding: 0;margin: 0" type="button" value="CONNECT TO FACEBOOK" onclick="window.open('<?php echo $this->loginUrl;?>','','height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no'); GGSHOP.facematch.hide();"/>
	             	</div>
	         </div>
	      </div>
	 </div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script type="text/javascript">
	GGSHOP.match.loadScore();
</script>   